//
//  BKGDObject.h
//  bestkeep
//
//  Created by 武探 on 2016/11/9.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MJExtension.h"

@interface BKGDUserLevelObject : NSObject

@property (nonatomic, assign) BOOL loginFlag; //用户是否已登录
@property (nonatomic, strong) NSString *level; //等级0-11
@property (nonatomic, assign) NSInteger levelNum; //会员等级标识
@property (nonatomic, strong) NSString *userName; //会员昵称
@property (nonatomic, assign) BOOL vipFlag; //0, 非vip;1, vip

@end


@interface BKGDSKUObject : NSObject
///按钮文字
@property (nonatomic, strong) NSString *btnText;
///囤货固定出价默认日期
@property (nonatomic, strong) NSString *fixedbidprice;
///囤货固定出价价格
@property (nonatomic, strong) NSString *fixednewlyday;
///是否能购买0：不可购买，1：可购买，2：到货提醒 涉及渠道开关，商品的状态。
@property (nonatomic, assign) NSInteger isBuy;
///市场价
@property (nonatomic, strong) NSString *marketPriceStr;
///平台价
@property (nonatomic, strong) NSString *platformPriceStr;
///vip价
@property (nonatomic, strong) NSString *price1;
///非vip价
@property (nonatomic, strong) NSString *price2;
///0:囤货模式商品 (默认)，1：普通预购模式商品，2：固定出价
@property (nonatomic, assign) NSInteger saleType;
///发货地+发货时间拼接起来 (普通预购的预计发货时间直接取该字段)
@property (nonatomic, strong) NSString *sendAddress;
///导购金
@property (nonatomic, strong) NSString *shoppingGuidePrice;
///导购金 包含描述
@property (nonatomic, strong) NSString *shoppingGuidePriceStr;
///进口税
@property (nonatomic, strong) NSString *showvipxfs;
///SKU数据主键ID
@property (nonatomic, strong) NSString *skuId;
///商品销售属性ID逗号分隔链接字符串"
@property (nonatomic, strong) NSString *skuProIds;
///库存数量， (如果是固定出价已设置为bk库存跟货权匹配数中较小的)
@property (nonatomic, assign) NSInteger stock;
///糖赋
@property (nonatomic, strong) NSString *taxAmount;
///糖赋 包含货币符号
@property (nonatomic, strong) NSString *taxAmountStr;
//customer
///排序后的proIds
@property (nonatomic, strong) NSString *sortedProIds;

@end


@interface BKGDPropertyItemObject : NSObject

@property (nonatomic, assign) NSInteger available;
@property (nonatomic, strong) NSString *id;
@property (nonatomic, strong) NSString *img;
@property (nonatomic, strong) NSString *propertyValue;

#pragma -mark customer
///其他item不匹配的ID
@property (nonatomic, assign) BOOL isSelected;
@property (nonatomic, assign) BOOL isMismatching;

@end


@interface BKGDPropertyObject : NSObject

@property (nonatomic, strong) NSString *id;
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSArray<BKGDPropertyItemObject*> *propertyRelList;

//自定义
@property (nonatomic, assign) NSInteger currentSelectIndex;

@end


@interface BKGDKeyValueObject : NSObject

@property (nonatomic, strong) NSString *key;
@property (nonatomic, strong) NSString *value;

@end


@interface BKGDMembershipPurchaseistObject : NSObject
///会员等级
@property (nonatomic, strong) NSString *level;
///限购数量
@property (nonatomic, strong) NSString *quotaAmount;
///是否当前用户级别
@property (nonatomic, assign) BOOL currentLevelFlag;
///等级标识符
@property (nonatomic, strong) NSString *levelNum;
@property (nonatomic, strong) NSString *quotaMessage;

@end


@interface BKGDCollectObject : NSObject
///还能购买的数量
@property (nonatomic, assign) NSInteger canBuyAmount;
///是否已收藏
@property (nonatomic, assign) BOOL flag;
///限购系数标示
@property (nonatomic, assign) BOOL quotaFlag;
///限购信息
@property (nonatomic, strong) NSString *quotaMessage;
///会员限购详情描述
@property (nonatomic, strong) NSArray<BKGDMembershipPurchaseistObject*> *membershipPurchaseistV1;

@end



@interface BKGDObject : NSObject

@property (nonatomic, strong) NSArray<NSString*> *activities;
@property (nonatomic, strong) NSString *btnText;
@property (nonatomic, strong) NSString *categoryId;
@property (nonatomic, strong) NSString *categoryName;
@property (nonatomic, strong) NSString *channelType;
@property (nonatomic, strong) NSString *channelUrl;
@property (nonatomic, strong) NSString *goodsDetailedUrl;
@property (nonatomic, strong) NSString *goodsId;
@property (nonatomic, strong) NSArray<NSString*> *goodsImages;
@property (nonatomic, strong) NSString *goodsName;
@property (nonatomic, strong) NSString *goodsTaxText;
@property (nonatomic, assign) NSInteger goodsType;
@property (nonatomic, strong) BKGDCollectObject *goodscollect;
@property (nonatomic, assign) NSInteger isBuy;
@property (nonatomic, strong) NSString *marketPriceStr;
@property (nonatomic, strong) NSArray<BKGDKeyValueObject*> *params;
@property (nonatomic, strong) NSString *platformPriceStr;
@property (nonatomic, strong) NSString *price1;
@property (nonatomic, strong) NSString *price2;
@property (nonatomic, strong) NSArray<BKGDKeyValueObject*> *promotions;
@property (nonatomic, assign) NSInteger propNumber;
@property (nonatomic, strong) NSArray<BKGDPropertyObject*> *propertyListArray;
@property (nonatomic, strong) NSString *remark;

//0:囤货 1:普通 2:固定出价 3／4:客户端根据thnormalFlag showThNormalbutton自定义（3:可转预售的囤货 4:囤货预售）
@property (nonatomic, assign) NSInteger saleType;

@property (nonatomic, strong) NSString *sendAddress;
@property (nonatomic, strong) NSString *shareRemark;
@property (nonatomic, strong) NSString *shoppingGuidePriceStr;
@property (nonatomic, strong) NSString *showvipxfs;
@property (nonatomic, strong) NSArray<BKGDSKUObject*> *skuList;
@property (nonatomic, strong) NSString *stock;
@property (nonatomic, strong) NSString *taxAmount;
@property (nonatomic, strong) NSString *taxAmountStr;
@property (nonatomic, strong) NSString *videoUrl;
@property (nonatomic, strong) BKGDUserLevelObject *userLevel;
@property (nonatomic, strong) NSString *goodsFeatureDescribe;//商品特色描述
@property (nonatomic, assign) BOOL thnormalFlag; //判断该页面是否是囤货普通预售
@property (nonatomic, assign) BOOL showThNormalbutton; //是否显示囤货普通预购超链接（只有thnormalFlag为false时才判断此值）
@property (nonatomic, strong) NSString *sendDate; //囤货普通预购发货日期
///是否支持7天无条件可退换货(默认为0：不支持，1支持)
@property (nonatomic, copy) NSString *canReturnSaled;
///发货仓库名字
@property (nonatomic, copy) NSString *ckName;
///customer
@property (nonatomic, strong) BKGDSKUObject *currentSelectSKUObject;

@end
